<?php
/**
 * YMailerInterface.php
 *
 * @author Hua Yang <htmlcook@gmail.com>
 * @since 2.0
 */

/**
 * Interface YMailerInterface
 */
interface YMailerInterface
{
	/**
	 * @param null $view
	 * @param array $params
	 * @return YMessageInterface
	 */
	public function compose($view = null, array $params = array());

	/**
	 * @param $message
	 * @return bool
	 */
	public function send($message);

	/**
	 * @param array $messages
	 * @return integer
	 */
	public function sendMultiple(array $messages);
}